/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
	preset: "ts-jest",
	testEnvironment: "jsdom",
	transform: {
		"^.+\\.[tj]sx?$": "babel-jest",
		"^.+\\.mjs": "babel-jest",
		"^.+\\.cjs": "babel-jest",
		"^.+\\.vuex?$": "@vue/vue3-jest"
	},
	transformIgnorePatterns: [],
	moduleNameMapper: {
		"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
			"<rootDir>/testings/__mocks__/fileMock.js",
		"\\.(css|less)$": "<rootDir>/testings/__mocks__/styleMock.js",
		"^@/(.*)$": "<rootDir>/src/$1"
	},
	testEnvironmentOptions: {
		customExportConditions: ["node", "node-addons"]
	}
};
